package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "goods_convert")
public class GoodsConvert {//兑换商品表

    private long id;//ID

    private String shopName;//商品名称

    private int point;//商品积分  商品单价

    private int firstPostage;//首件邮费

    private int otherPostage;//此后每件增加运费价格

    private String remark;//备注

    private Timestamp createTime;//创建时间

    private String intro;//商品简介

    private long status;//是否上架，1：已上架，0：已下架

    private String mainPic;//商品主图；


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "point")
    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }
    @Basic
    @Column(name = "first_postage")
    public int getFirstPostage() {
        return firstPostage;
    }

    public void setFirstPostage(int firstPostage) {
        this.firstPostage = firstPostage;
    }
    @Basic
    @Column(name = "other_postage")
    public int getOtherPostage() {
        return otherPostage;
    }

    public void setOtherPostage(int otherPostage) {
        this.otherPostage = otherPostage;
    }

    @Basic
    @Column(name = "main_pic")
    public String getMainPic() {
        return mainPic;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }

    @Basic
    @Column(name = "shop_name")
    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "intro")
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Basic
    @Column(name = "status")
    public long getStatus() {
        return status;
    }

    public void setStatus( long status) {
        this.status = status;
    }

    public GoodsConvert() {
    }

    public GoodsConvert(String shopName, int point, int firstPostage, int otherPostage, String remark, Timestamp createTime,
                        String intro, long status, String mainPic) {
        this.shopName = shopName;
        this.point = point;
        this.firstPostage = firstPostage;
        this.otherPostage = otherPostage;
        this.remark = remark;
        this.createTime = createTime;
        this.intro = intro;
        this.status = status;
        this.mainPic = mainPic;
    }
}
